package com.billing.service;

import org.apache.ibatis.annotations.Param;

import com.billing.model.entity.TUserPrivate;
import com.billing.model.entity.TUserPrivateBuffer;

public interface UserPrivateService {
	public int insertTUserPrivate(TUserPrivate userPrivate);
	/**
	 * 查询数据通过 userid
	 * @param userid
	 * @return
	 */
	TUserPrivate selectUserPrivateByUid(@Param("userid")String userid);
	/**
	 * 修改数据
	 * @param userPrivate
	 * @return
	 */
	public int updateUserPrivate(TUserPrivate userPrivate);
	/**
	 * 查询数据通过 id
	 * @param id
	 * @return
	 */
	TUserPrivate selectUserPrivateById(@Param("id")String id);
	/**
	 * 修改数据通过 userid
	 * @param userPrivate
	 * @return
	 */
	public int updateUserPrivateByUid(TUserPrivate userPrivate);
	/**
	 * 新增根据镜像
	 * @param privateBuffer
	 * @return
	 */
	public int insertByBuffer(TUserPrivateBuffer privateBuffer);
	/**
	 * 修改根据镜像
	 * @param privateBuffer
	 * @return
	 */
	public int updateByBuffer(TUserPrivateBuffer privateBuffer);
}
